home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / measurements.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-10-17  |  956 b   |  42 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef MEASUREMENTS_H
  8. #define MEASUREMENTS_H
  9.  
  10. #include "ui_measurementsbase.h"
  11. #include "scribusapi.h"
  12. #include "scrpalettebase.h"
  13.  
  14. class SCRIBUS_API Measurements : public ScrPaletteBase, Ui::MeasurementsBase
  15. {
  16.     Q_OBJECT
  17.  
  18. public:
  19.     Measurements( QWidget* parent );
  20.     ~Measurements() {};
  21.  
  22.     virtual void changeEvent(QEvent *e);
  23.  
  24.  
  25. public slots:
  26.     void setValues(double x1, double y1, double x2, double y2, double angle, double length);
  27.     void unitChanged();
  28.     /** @brief Sets GUI strings on language change */
  29.     void languageChange();
  30.     
  31. private:
  32.     double mX1;
  33.     double mY1;
  34.     double mX2;
  35.     double mY2;
  36.     double mDX;
  37.     double mDY;
  38.     double mLength;
  39. };
  40.  
  41. #endif // MEASUREMENTS_H
  42.